/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.principles.LSP.ViolateLSP.config;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.context.annotation.Bean;
import za.ac.cput.principles.LSP.ViolateLSP.ViolateLSP.IviolateLSP;
import za.ac.cput.principles.LSP.ViolateLSP.ViolateLSP.impl.Square;
/**
 *
 * @author Dwayne
 */
@Configurable
public class AppConfig 
{
    @Bean(name = "LSP")
    public IviolateLSP IviolateLSP() 
    {
        return new Square();
    }

    @Bean
    public IviolateLSP newLSP() 
    {
        return new Square();
    }

    @Bean(name = "NLSP")
    public IviolateLSP Square()
    {
        return new Square();
    }
}
